package com.yxhl.zoume.utils;

import java.util.Collection;

/**
 * Created by vhawk on 16/3/22.
 */
public class CollectionUtils {
    /**
     * 集合是否为null或者无元素
     *
     * @param collection
     * @return
     */
    public static boolean isEmpty(Collection collection) {
        return collection == null || collection.size() == 0;
    }
}
